<?php

require_once("model/autorfacade/to/basic_message_chunk_to.php");
require_once("model/autorfacade/to/mailbox_information_to.php");

class All_mail_information_to {

	private $basic_message_chunk;
	private $mailbox_information;

	public function __construct($basic_message_chunk, $mailbox_information) {
		$this->basic_message_chunk = $basic_message_chunk;
		$this->mailbox_information = $mailbox_information;
	}
	
	public function get_basic_message_chunk() {
		return $this->basic_message_chunk;
	}
	
	public function get_mailbox_information() {
		return $this->mailbox_information;
	}
	
	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))				
			 return false;
		else {
			if (($this->basic_message_chunk = $object->get_basic_message_chunk()) &&
				($this->mailbox_information = $object->get_mailbox_information()))
				return true;
			return false;
		}
	}
	
	public function to_string() {
		return 'basic message chunk: ' . $this->basic_message_chunk->to_string() . '</br>' . 
				'mailbox information: ' . $this->mailbox_information->to_string();
	}
}
?>